function loadThreadFollow(item_id,cat_id){
	var targetImg =eval("questionAdd.followImg" + item_id);
	var targetDiv =eval("follow" + item_id);
	var targetTd =eval("followTd" + item_id);
	if (targetImg.src.indexOf("nofollow")!=-1)
			return false;
	if ("object"==typeof(targetImg)){
		if (targetDiv.style.display!='block'){
			targetDiv.style.display="block";
			targetImg.src="images/minus.gif";
			if (targetImg.loaded=="no"){
		    var text = "";
		    var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		    xmlhttp.open("GET","loaditem.jsp?id="+item_id+"&catid="+cat_id, false);
    		xmlhttp.send();
    		text = StreamToChar(xmlhttp.responseBody);
    		delete(xmlhttp);
    		targetTd.innerHTML=text;
    		targetImg.loaded="yes";				
			}
		}else{
			targetDiv.style.display="none";
			targetImg.src="images/plus.gif";
		}
	}
}

function resumeTree(rootid){
	loadThreadFollow(rootid);
}

function StreamToChar(StrStream)
{
  var r = "";
  var Stream = new ActiveXObject("ADODB.Stream");
  Stream.type = 1;
  Stream.Mode = 3;
  Stream.Open() ;
  Stream.Write(StrStream);
  Stream.Position = 0;
  Stream.Type = 2;
  Stream.Charset = "gb2312";
  r = Stream.ReadText();
  Stream.Close();
  delete(Stream);
  return r;
}

  function showRegText(id,catid)
  {
  }
